Move router creation to the onload block