Added code to choose from left or right sidebars.