before making changes to scroll bar