added drawend event