Re-render when the current page is loaded or changes