tri-stated the master switch
added modal with save/close buttons