moved pauseClicks to more logical place