fix more json, update index and controller