ajaxified the app and added a loading gif