more work oh hud
refactor of gui handler