Fix to use the element cache of battle log
Change position of utility functions for dialog UI
Divide code for the HV STAT icon from `hvStat.ui`