added switch for message show