Add event listener for transition end

Change-Id: Ie6fb9af2d3d9c87c7a8f196aff4caf80c2307e26