changed edit destroy to index