Code clean-up in GUI initialization.