putting dashboard code