extracted a class from the dashboard controller