integrate sidebar into layouts