code for simple browser.