implementing HtmlParser and page_open script