Added delete message functionality