Small adjustments on previous commits to fix dialogs and tor autostart