update unindent and undo to use data