add index routes
Fixed merge conflict: kept both code on controller