Template form remade (TODO JS functionality)