replace element text with msg that changes with style