fixed it so when a new page is added the default buttons look selected