Update custom dialog sample