Smoother modal transition