fix route names. fix format of pages in main.