Updating isActiveTab