make action dynamic by using ng-attr