add loader on ajax and memorize checkbox