Add webpage constructor with open method