Implementing the item controller