moved socket.on to admin index