Changed alert box for delete post to a dialog box.