got side bar working to adapt to the changing size of the page