began rewriting UI as a class. I think I have the lifecycle figured out.