fix redirect after deleting post via ajax