Changed dialog display method.