update faulty logic for getting sidebar navigation.