sidebar location logic changes