it should be: record-dialog with non-capital d!