Add socket io and routing