move dashboard services into server.js