Added right- and middle-click support to buttons