Added the Save File and Send File functionality