back to ui-router and working json api for folio.