better response_page_format function