Refactor of _buildStoreConfig and a popup blocker alert