Properly refresh gui when updating config