add mouse event handler