Possibly bad logic for multiple sidebars