added pagination button controls