Changed order so that the client loads the gui not the gui loads the client as it should be. Only done for tpi at the moment