changes to portal.js for dashboard