[IMP]planner: make next_page and mark_as_done method to generic.