update profile method