edit main form