added the possibility to loop through edit and view modes in the HUD