transition, modal

fixed transition cleanup if page is missing, and added the ability to
dispose modals close callback