added dialog autoclose after adding show