implementing controller events#index