component help

I've had this code in my layer for years now.. one day it just stopped working. The code is still there but the components are showing up. I compared with the code on the tutorials and it pretty much looks the same. help?