Added show/edit functionality to index