Implementing global message showing/hiding