preparing the dashboard template