Moved dashboard data calculations and fetching to a separate context component
Created a context provider component to fetch and calculate all the data that the dashboard component needs. Also moved the UI of the dashboard into a separate UI component. Dashboard component now utilizes those two components to display the same information.