modified generator script to copy view files