scroll and click functions working