add constructor into AbstractPage
change type method checkPage() and
add it in  pages's constructor
common simplify code