update to script and widget