refactored BasicDialog to use generated accessor