add getStocks in main.php