Move status change to AJAX