Refactord dashboard route