moved the click functionality