fix a logic bug after turning on the wifi and the program will automatically open browser to reach the homepage.