adding dynamic results per page field