correction on the form and push to js template