added AJAX to main page