Added socket logic to presentation