change_page_description code refactoring