added code to send push notifications after a new message is added