updates in pushing data to server and uding server side logic to save a item to the stock