clean up mouse click event handling