added socket code to table view