added mouse events for visualizations as well