scrollbar refactoring