[IMP]planner: create new function _switch_page, will take planner_page_id as a argument and will perform the switching operation.