added moveto on click