finished index and show actions for categories controller