update messages, delete action when appropriate