Setup functionality to control the display of the sidebar including some styling changes