refactor, confirmation window