add mouse handler