Code makeup in RecordDialog