added ajax call to save story