fixing the post delete option