mainform updated