added event listeners to X,Y,R changed