make sure sidebar works even when localstorage doesn't