use angularjs and change backend architecture