add resume and pause event