Separating the code from dashboard