handles the case for changing views when there is unsaved changes for new list (in inventory view/list view). GCP-9124. Reviewer: Darla/Dennis.