updates to ensure proper form submission