generate controller and views