Added unsaved changes check when doing a quick search