It may have worked, but it is not the proper solution. It will only work for the hard coded component.

You where given the answer in your first reply. The tutorial has a working example that shows...