Reworked whole UI to be class-based.
Reworked whole UI to be class-based.