commenting
refactored slightly
when we reset the front end state based on new server data, remember to clear all connections