move MAX_INDEX to be main_page_entries in the config file