Improved GUI and a thread for networking