coded edit profile functionality