MG_twist script and ui