#1 added AJAX receiving of data for each page