Refactored some scrolling stuff, made it more smooth