update customer loop in template customer