fixed issues with confirmation dialogs on navigate away with changes