create checkbox and radio component