Why was this hud code moved to an onclick file?