format results based on page param