changed pageX to clientX