Fixing issue with firefox not submitting after searching for new parent