minor improvements to modal-popup transition