made analyze and filter buttons be toggles