add checking for begin/end page enable/disable paging