sidebar behaves properly