moved onload calls under helpers