add angular.js to load main page and there is still has some problems.