Added a mouse handler