resolve bugs library generate.php, template (view,form)