add method index in application_controller