add two-way binding for angularjs