Updated the directive to support the filter control