create angularjs layout