created the form from some entities