changed opening/closing in modal to using TransitionBase