do not reuse tools array in popupConfig, it brakes popup tools second time popup opens