add css, integrate legend into filter