Detect refresh events and re-apply elemhide styles. Fixes #78.