Refactoring add item controller