return focus to inputs after alert and confirm dialogs
changed alert to modal dialog