Refactor modal show for CSS transitions