updated script and ui