modified client side to use angularjs and server side to use webapi