updating main form