Many imporovements to dialog and temporary urls