Move some stuff to ScrollManager class