send events only when applicaiton state is active