main form layout, added connect error check
more layout