Your controller looks good. You probably should clean it up and delete out the commented lines that you used as a reference during development.