Change active/inactive status with AJAX request