put all dashboard controller logic in model, using class methods