Fixing Sockets/SSL and UI