fixing site wide sidebar logic