fix main page and written order