change page to display when first function call has been made