refined form_for  code