edit doc and messages