Move dashboard functions and assets to plugin