added moment.js and refectored dashboard controller