[ADD] function to generate a filter form