added variables needed for mouse events