adds correct underlining for gui