issue with conditional rendering - model unsaved changes