creating secret message functionality