Updated socket io data passing