Add transition end event and rename class