Make the popup form work when there are multiple on one page