replaced pagination logic with angular-utils-pagination