add pagination buttons and testing