implemented rendering in Form class