Clean up search field state when re-entering the ui