Ajax update and create

Finished ajax update and create