Add confirm when leave edit page.