added pagination to angular