fix focus logic for adding new items