update common class for sort and undone action