#4 adding transition end event