some cleanup
translated guielement classes to scala