connected socket with click