Dialog initial implementation.