Added middle button and right button events