* added page function to the main form.