added buttons to mouse handling