switch to view mode if user closes filepicker without selecting a file