Added option to disable mouse events