creates controller and view for dashboard