added dialogs for creating a server and connecting to server. Now ip and ports are not predefined.