Added functionality to the sidebar and fixed other display issues