Adding flashes and alerts