add mouse event to element