added change page and rows per page functionality