set initDropdown and initCheckbox as global