Continued refactoring and DOM manipulation, improved ajax requests