React to the current phase when the page is loaded