mainpanel update