added connect to serverFunctionallity in gui