add some logic to the form_view