Prepared modal window handling.