split the controller into seperate pages.