added autofocus to input element in prompt dialogs