Made the buttons in the filedlg change when selecting a different view type by the context menu, cleanup.