mouse handler for the gui