Changing registration of focus handler