update parse tree on document change