change function nv_generate_page