working the changes to the ajax stuff