dynamic table implementation for angularjs