add generator for view