x and y update when clicked