Fixed some little ajax issues and improved management of edits.