lets move all the ajax calls into its own file