update character controller