Handling move on click