Updated dashboard code.