Started migrating dashboard to use api