created universal function to load content pages and removed content sidebars