added save method to update profile