Added visiblity setter to control visibility during parent dismissals