Function for producing the dashboard.