Updates to PyGlassElement to prevent multiple activations of complex widget hierarchies and improved basic dialog lifecycle management.