Migrating dashboard code into repo