made confirm come after view changes