work in progress on implementing AJAX