improve gui edit