Update: moved all hud related code to invokeHud class