correct file dialogs

they got destroyed too early

Change-Id: Ie4941174c0c253a2a8f3780e4dfe920bde246d10