Used timer because I didn't found appropriate event