modifications to the dashboard code