add display of flash to app layout