Changed Dialog script to fit new dialog