update controller script