working on save profile functionality