Commiting after modifying the ajax calls and inserting activity id to be displayed on the screen