refactored the items controller
Merge pull request #27 from MissingLabel/refactor_items_controller

refactored the items controller