refactoring ajax
continued work on post
finish ajaxifying