add checkWIFI, checkGPS, distance measurement and fix the throw of
address box