move code to class StockNewItem