added the mouse events