added some very basic dialog functionality