added support for mouse