fire document event on push notification. update code styles