finished the toggle and also the history back and forward features