add functions to retrieve and view the data for the dashboard