Update the generated controller class

in order to use the setItemDisplayed method
Merge pull request #9 from Foine/patch-1

Update the generated controller class for use setItemDisplayed