optimizing created function <createOptionsFilterTable>