init prepare dialog complete