prepare view and controller to create main page