sidebar reopens when navigating to new page