Introduce Flyout mode for top or left

updated sample to switch between the two.