better way for a form rendering