Add confirmation for unsaved changes