add show flash notice function