refactored for tempo prototype, started UI