changed threshold to 7 days, added differentiation on map between recently active/inactive devices