Changed show and hide messages