improve flyout event