clear works but not for sockets. cant add sockets to DOM. need to fix but functionality is there