Update page title when navigating through directories