correction to the trail form submission from popup