dialog simple logic added