added mouse event handlers with context