Updated new posts and editing posts, also added alert boxes