record and save working

now for file dialogs