Adding queue clearing after flash UI element is hidden