handle file type filter