Added all functionality required for the save dialog.