new attempt at correcting flyout rendering