fixed bugs: now sidebar menu works on every page and accesses every page.