changed editProfile function call to fetchProfileInfo