preparing code to finish the dashboard