create controller and add partials