view generator for searchpage