updading battery level every 5 seconds