[web] create form *before* using it