view page function completed