adding method for showing text messages