added mouse handling events