How to update form fields via popup box?