updated to have editProfiles accept additions as well as updates with tests