Dynamically update file type filters and remember user's preference