updates message to 'sent' once a message is sent