add page confirm callback