fixed the item by category function and worked on views a bit.