Moved dialog.reposition to the default context