Switching to using form tags in pop-up dialogue box