changed dynamic generation of API Form template to server side