simplify form code, edit text