before creating order rows as separate js