Integrated the sidebar code into the settings controller
Removed main.js and integrated it properly in angular.