main form updated