added helper function to addFilterForm