I have a generic USB mouse that has the navigation buttons for back and forward in the left side near where the thumb rests. These buttons work out of box in any Windows or Linux machine that supports USB mouse, but on my iMac with macOS 10.13.6 the both buttons only serve to open a link in a new tab, like the button on the scroll wheel does. How can I configure the mouse to work like in a Windows/Linux box? On an extra, I wish I could invert the scroll direction on this mouse. How can I do that?