Rewrite of change_topic_page function.