introduce CloseCommand for Flyout #679
demo for flyout CloseCommand