refactoring sidebars