change menu if page is active and set page title