added check for whether whatsapp is on or off