attached appropriate scripts to the prefab