AJAX updates + cleanup.