add xml output to form controler