added filtering by tags functionality