added control page for UI, roughed in sockets and reconnection logic