tables should be populated onload

tables are empty on page load, because criteria and pageNo are undefined