cleanup result fields when shown/hidden