Refactor controller and update student dashboard.