Save query type when leave search page.Restore query type by last action