changed mouse event signature