place getDeviceId after store is loaded