Moved some form generation strings back inside respective loops