updated unit tests,controller,model and views for ItemRepository