changed listings per page to a number field