add menupanel and message process function