Modelize forms

use models in forms. also in other places.