added dialog timeout