re-renders work as they should when navigating