added update profile
fixed update profile bugs