Removed unused code in dashboard controller