connect to server
Seperate big frmMain class into 4 partial class files