Update modal handling.