Removed initPages from interface and wrapped it in updatePageLayout()