add confirm dialog. change layout