Added editing feature for messages.