reorganized encounter form rendering functions.