only clicks fire onclick. Refactoring to create new invoke flyout function.