build sidebar etc