added mainFrame to client