Add hide and show filter functionality