Update modal widget with better accessibility support