repositioned classes to top of document