add currentPage() and currentResource()