collecting tag value dynamically for form options