generating controller and views