changed the sidebar to overlay
added check to related posts