add option for disabling adding items when input is blurred