improve dom manipulation routines for fields