make index/show/edit to work