save before displaying the share dialog