Change conditional logic so the message will disappear after the link is clicked