rewrite sidebar