Changed to evaluate newListItem length to determine close button