add threshold to click