Restructured Update() in messagepanel