prevent transitionend from firing init call multiple times