Adding error checking to whitelist API
Fixing preferences window only openable once
Adding/removing URIs working again