Create open/close functionality for the HUD