union - initial code cleaning, form creation in html and backend