change active tab on page change