changed visibility, added getPageCount(), getCurrentPage()