added master panel. changed send msg method.