rewrite sidebar contents