adds view generator