deleted dashboard.js and setup authentication as a full fledged service