added first code for push notifications