working on add post redirection functionality