gui elements example (untested?). steps towards osx compatability