fix of router and index page