Implements smoothscroll