Some more work on the attenuator and general gui