move client side socket code to ui folder
use randomized data for test