Several fixes to set the right active tab in the standing page and subpages