updating for removing items, auto sort