Added filter dropdowns and most of filtering code.