add undo to .slate