remove flash from layout