refactors scroll click events