simplify form class and it's html generation