calculates & exports current page to scope