add XML output support to form controler