Add function filter for filechooser