add index
add crud, refactor to partials