slowly working on server side and angularjs integration