refactored GUI - more ActionScript-like interface

should make GUI stuff more maintainable