Making GUI update itself