[RAPPS] move the message proc to gui.cpp