implement user connected event