performance improvements for scrolling