Improved Sidebar to work on the left or right