Limited popups to one at a time

Every time text was selected, it was creating a new submit button. No one noticed, because they were stacked one on top of the other in the top left corner. Now that the popup is displayed near the mouse, multiple submit popups were being displayed simultaneously. This commit checks for and removes existing popups before adding a new one.