start work on AJAX handler