refactor on redirects, delete posts, comments