added simple mouse handling