added function to remove add new context for staging pages
added logic to create the staging post