fixed bug in layout of form view in js