adding flash alerts