change addEvent with fragment