Flyout code updated

Works better when the screen size is changed while running
Nulls!
Merge commit '36540d4496d9cb7e2acf3b0b048e6490d5f3dd37'