updating mouse events