create controller and view