Add leave page confirmation when pending operations exist