Adds changes to the pages so that active tab is correctly highlighted