fix routing and homepage