new function: setHudElementVisible