Add ctx to control.onrender cb