Added ability to show and hide sidebar.