created controllers and view index