Added new dialog functions