added UI class

changes:
- UI class for cleaner code (not yet in use)