before doing sidebar