Turned filterbox into a directive.