Ajax-Add, Deleting Posts, Refactoring