changes to refresh gui