Move WiFi code into new activity