Changed GUI a bit and added a bool to check for internet connection