preparing angularjs based ui