work on rendering encounter form in closed mode.