updating from GUI