mouse handling stuff
Cleanup, nothing much changed.