updating controller script