refactored sockets for serialized events
fixed bug regarding tabs and picutres not propagating to all
environments