added connection with bootstrap pagination