Move dashboard loading into a module.