HUD position update function