Hide target after showUndo, support target without classes