implemented index for items (view and controller)