Add profile-addition dialog; refactoring.