complete prefs; fix legacy handlers and opening urls inside sandbox