Cleaning up profile dialog.