Refactor main_load_content