Generate StatePages controller and set root page in routes