generate views and pages controller