breaking up setDeviceAndLaunchSimulator() method