add mouse event to UI