code updated for GCM push notification