updated html pull code