on page change sidebar reopens if tab had sidebar open