Added save as functionality to UI

Don't do this up here, make it a local variable in `showSaveDialog`