dismiss transition now working correctly