make dashboard partial as a parameter