fixed pageX pageY and loggin