set framework,create controller and view