implement filling form from the model