move flash into layout