form building in separated class