begin create-widget script