Why the gold leaves in an electroscope

Why the gold leaves in an electroscope :
(a) diverge when touched charge glass rod.
(b) fold back when touched with hands.
© fold back when touched with a charged ebonite rod ?
A. (a) Gold leaves diverge when touched with a charged glass rod because they both acquire
similar charge.
(b) Gold leaves fold back when touched with hands because the charged is ‘earthed’.
© When touched with charged ebonite rod, the charges are neutralized, so the leaves fold back.