updated userProfile, view dashboard func, tests