implemented ui-bootstrap pagination in place of my implementation