Updated to use dialog() of IITC v0.12