fix modal dialog input focus bug (focus was only happening on first load of modal per session