add undo button, undo last query compute