Added index to FormDescriptor to keep track of order of the forms in
xml.