Changed how the mouse events are informed. Repaired all the errors caused by the change.