make sure there is extends tag in the page