streamlined code for callback of .get method in sidebar controller. Also added sortable html to sidebar.html