updated InputItem to allow deletion