Add the script for DialComponent