add delete message function