Improve ModalBehavior to track opened/closed state by default