adding angularjs with controllers behavior