stock page rendering function moved below stock data fetcher function