init UI using Twig Template Engine and AngularJs