generate controller for sub page