fix GUI so that insert and clear work OK