Attached almost all the elements to a ui class, optimized some overdrawing to remove jank, added a generic button class, fixed a bug where the energy meter wouldn't highlight on mouseover