add the active class when setting the toolbar position