update dashboard code