update main form control