updating all files to use ajax