added functions to transform toolbars on page scroll