added undo action for clear command