extract context of the page