clean up code in itemscontroller
shortened title