Added code for filter buttons.