Fixing search functions to call the ask-to-save function properly