Added code to persist widget displayed views.

Does not yet attempt to reconnect the comms...