How to limit file type in viewer pane?