front-end routing: fix re-rendering and not-rendering