First attempt at AJAX using the query view