added magnetometer widget