add alert when deleting post