adding functionality to pull up data for dashboard