Change records per page to use submit function