cleaned the templates
added an api for the item resource