add and delete message functionality completed