fixed the message box management system