Refactor load_menu_content_history