Add some hooks to mark a poll as deleted and restore it