re-enabled wifiOnly preference and prettified implementation of it.