mouse events update and comments/code clean up