finished index, show and edit methods