added a mouse listener