Added support for mouse events