update tutorial and fix document delete bug