refactored dashboard to pass a singular instance variable