added event "before.results" in index action