changed searchEvent call order