Implemented a simple confirmation dialog