transfers dashboard logic from events controller to dashboards controller