refactors new post redirect