Adding mouse handler