adding controller script