add loop control in evdraw