generated controller and model