def duplicates moved to items_controller.rb