add the dashboard function