refactoring match filter, removing inline CSS