repositioning dialogs and auto focus