refactoring and implement skinny controller
move dashboard to class dashboard