Handles token change