Total refactoring. Remove all UI code to start from scratch.