window now scrolls to top on state change. changed html and css to html5 css3.