Implemented a graceful disconnect and did some UI clean up

@davidfowl @mikary @abnanda1 
we don't need the number of agents, since we are sending the list of ids now