Adds AJAX loading animation to checkbox event