added some functionsto class Webpage