Handled if user inserts

Handled `rowsPerPage` and `currentPage`.