adds scroll bar adjustment