Created a more abstract redirect method for admin

Created a abstract method for redirection, which will help when we
create new posts. Still working on new post bug, and integrating
Kanishka's new page changes.